//
//  UIEdgeInsets+Extensions.swift
//  ACFrameworkSwift
//
//  Created by c5342925 on 2022/3/25.
//

import Foundation

extension UIEdgeInsets {
    
    /// Sum of horizontal edge insets
    var horizontal: CGFloat {
        return self.left + self.right
    }
    
    /// Sum of vertical edge insets
    var vertical: CGFloat {
        return self.top + self.bottom
    }
    
    var topLeftPoint: CGPoint {
        return CGPoint(x: self.left, y: self.top)
    }
}
